import { Component, OnInit, OnChanges, Input } from '@angular/core';
import { Assembly, AssemblyStyles, AssemblyValidators } from '../../../fb-design.model'

@Component({
    selector: 'qk-line',
    template: `
        <div [ngStyle]="assembly.attributes.style"></div>
    `,
    styles: [``],
    providers: []
})
export class QkLine implements OnChanges, OnInit {
    @Input() assembly: Assembly;
    @Input() mode: number;
    
    ngOnInit() {
    }

    ngOnChanges() {

    }
    ngDoCheck() {
        this.assembly.attributes.refreshStyle();
    }

}